import request from '@/utils/request'
let get = (url,data,headers)=>{
    return request({
        url:url,
        method:'get',
        params:data,
        headers:headers
    })
}

let post = (url,data={},headers)=>{
    return request({
        url:url,
        method:'post',
        data:data,
        headers:headers
    })
}
const api = {
    login:(data)=>post("/api/login",data),
}

export {
    api
}